package com.zmn.oms.dubbo.interfaces.conf.distribute;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.common.dio.conf.distribute.DistributeWeightDIO;
import com.zmn.oms.common.dro.conf.distribute.DistributeArgsDRO;
import com.zmn.oms.common.dro.conf.distribute.DistributeConfigDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import javax.validation.constraints.NotNull;

/**
 * 类描述：派单参数查询远程查询接口
 *
 * @author  liuying
 * @date   2022/02/24 18:13
 */
@Api(value = "派单参数配置查询", tags = {"派单参数配置查询"})
public interface DistributeWeightListRemoteService {

    /**
     * 根据ID查询派单参数配置
     *
     * @param plat      平台ID
     * @param companyId 公司ID
     * @param cityId    城市ID
     * @return 派单参数配置
     */
    @ApiOperation(value = "根据ID查询派单参数配置")
    ResponseDTO<DistributeArgsDRO> findDistributeArgsById(@NotNull(message = "平台ID不能为空") Integer plat, @NotNull(message = "公司ID不能为空") Integer companyId,
                                                          @NotNull(message = "城市ID不能为空") Integer cityId, @NotNull(message = "业务类型不能为空") Integer bizType);

    /**
     *  查询派单配置
     * @param distributeWeightDIO
     * @return
     */
    @ApiOperation(value = "查询派单配置")
    ResponseDTO<DistributeConfigDRO> findDistributeConfig(@NotNull(message = "参数不能为空")DistributeWeightDIO distributeWeightDIO);
}
